package com.yu.service;

import com.yu.pojo.CommonResult;
import com.yu.pojo.Payment;
import org.springframework.stereotype.Component;

/**
 * @author yutao
 * @date 2021/11/24 23:51
 */
@Component
public class PaymentFallbackService implements  PaymentService{


    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444, "服务降级返回,---PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}
